package com.project.pojo;

public class Apply {
    private long id;
    private long userId;//外键
    private String relName;//表单显示
    private String roomId;//外键
    private String buildName;//表单显示
    private long timeId;//外键
    private String week;//表单显示
    private String time;//表单显示
    private String tName;//表单显示
    private String note;//表单显示
    private String number;//表单显示
    private long applyStatus;//表单显示

    @Override
    public String toString() {
        return "Apply{" +
                "id=" + id +
                ", userId=" + userId +
                ", relName='" + relName + '\'' +
                ", roomId='" + roomId + '\'' +
                ", buildName='" + buildName + '\'' +
                ", timeId=" + timeId +
                ", week='" + week + '\'' +
                ", time='" + time + '\'' +
                ", tName='" + tName + '\'' +
                ", note='" + note + '\'' +
                ", number='" + number + '\'' +
                ", applyStatus=" + applyStatus +
                '}';
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getTimeId() {
        return timeId;
    }

    public void setTimeId(long timeId) {
        this.timeId = timeId;
    }

    public String getRelName() {
        return relName;
    }

    public void setRelName(String relName) {
        this.relName = relName;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getBuildName() {
        return buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTName() {
        return tName;
    }

    public void setTName(String tName) {
        this.tName = tName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public long getApplyStatus() {
        return applyStatus;
    }

    public String getApplyStatusStr() {
        switch ((int) applyStatus) {
            case 1:
                return "通过";
            case 2:
                return "驳回";
            default:
                return "审批中";
        }
    }

    public void setApplyStatus(long applyStatus) {
        this.applyStatus = applyStatus;
    }
}
